package com.accp.biz;

import java.util.List;

import com.accp.pojo.Vacation;

public interface VacationBiz {
	public boolean add(Vacation vacation);									//增加(申请)休假
	public List<Vacation> findByManage(String checker,String name);			//通过权限查看休假信息
	public List<Vacation> findByEmployee(String name);						//通过权限查看休假信息
	public boolean updateaudit(Vacation vacation);							//审核员工休假信息
	public Vacation findById(Integer id);									//通过Id查找休假信息
	public List<String> findManage();										//查找（审核人）经理
	public boolean delete(Vacation vacation);								//删除休假信息
	/**
	 * 分页查看首页
	 * @param className
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	@SuppressWarnings("rawtypes")
	public List selectByPage(String className, int pageNo, int pageSize,String checker,String name);
	/**
	 * 分页查看下一页
	 * @param line
	 * @param className
	 * @return
	 */
	public int searchRecordsNextPage(int line, String className,String checker,String name);
}
